package org.ajc.org.service;

import org.ajc.org.dto.RoleDTO;
import org.ajc.base.service.IBaseService;
import org.ajc.org.domain.Employee;
import org.ajc.org.query.EmployeeQuery;
import org.springframework.web.multipart.MultipartFile;

import java.io.ByteArrayOutputStream;
import java.util.List;


public interface EmployeeService extends IBaseService<Employee> {

    /**查询上级部门*/
    List<Employee> deptTree();
    /**鉴权查询用户权限*/
    List<String> queryPermissionsById(Long id);


    Object upload(MultipartFile file) throws Exception;

    void download(List<Employee> employees, ByteArrayOutputStream outputStream) throws Exception;

    List<Employee> selectByKey(EmployeeQuery empQuery);

    List<String> queryRoleByEmpId(Long id);

    void setRole(RoleDTO roleDTO);
}


